/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package trackmsg;

import base.TrackNode;

/**
 *
 * @author Tue
 */
public class ActivateMsg extends TrackCtrlMsg{
    private TrackNode track;

    public ActivateMsg(TrackNode track) {
        this.track = track;
    }

    public TrackNode getCurrentTrack() {
        return track;
    }

    @Override
    public Type getType() {
        return Type.ACTIVATE;
    }

    @Override
    public String toString() {
        return "MESSAGE: " + getType() + " " + getCurrentTrack().getAddress();
    }
}
